<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../common/taglib.jsp" %>

<!DOCTYPE html>
<html>
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>我的首页</title>
	<meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE">
	
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/header.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/common.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/public.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/default.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/footer.css"/>">
	<script type="text/javascript" src="<c:url value="/js/jquery.min.js"/>"></script>
  </head>
  <script type="text/javascript">
  	function onload(value,url){
  		if(value==null || value==0){
  			alert("请先完善企业信息");
  			window.location.href="<c:url value="/company/register"/>";
  		}
  	}
  </script>
<body id="home" onload="onload(${hr.company.id})">

<jsp:include page="../common/hrheader.jsp"></jsp:include>

<div class="wrap clearfix">
  <div class="main"> 
   <div class="feeds-panel">
    <div class="control-box">
    <form:form method="post" action="" modelAttribute="companyModel" class="horizontal">
    <input type="hidden" name="id" value="${hr.company.id }">
    <input type="hidden" name="createTime" value="${companyModel.createTime }">
    <input type="hidden" name="industry" value="${companyModel.industry }">
    <input type="hidden" name="license" value="${companyModel.license }">
    <input type="hidden" name="nature" value="${companyModel.nature }">
    <input type="hidden" name="organizationCode" value="${companyModel.organizationCode }">
          <div class="steps-item">
            <div class="control-group">
              <label class="control-label"><span class="help-required">*</span>企业全称：</label>
              <div class="controls">                
                <div class="valid-row">
                	<input class="text span7" type="text" name="fullName" value="${companyModel.fullName }">
                	<span style="color:red"><form:errors path="fullName"></form:errors></span>
                </div>               
              </div>
            </div>
            <div class="control-group">
              <label class="control-label"><span class="help-required">*</span>企业简称：</label>
              <div class="controls">
                <div class="valid-row">
                	<input class="text span7" type="text" name="simpleName" value="${companyModel.simpleName }" > 
                	<span style="color:red"><form:errors path="simpleName"></form:errors></span>              
                </div>
              </div>
            </div>
            <div class="control-group work-area">
              <label class="control-label"><span class="help-required">*</span>主页：</label>
              <div class="controls">             
                <div class="valid-row">
                	<input class="text span7" type="text" name="homePage" value="${companyModel.homePage }"> 
                	<span style="color:red"><form:errors path="homePage"></form:errors></span>              
                </div>
             </div>
            </div>
            <div class="control-group work-area">
              <label class="control-label"><span class="help-required">*</span>地址：</label>
              <div class="controls">             
                <div class="valid-row">
                	<input class="text span7" type="text" name="address" value="${companyModel.address }"> 
                	<span style="color:red"><form:errors path="address"></form:errors></span>              
                </div>
             </div>
            </div>
            <div class="control-group">
              <label class="control-label"><span class="help-required">*</span>人数：</label>             
              <div class="controls valid-row">
                <div class="span span7">
                  	<input class="text span5" type="number" min=0 name="members" maxlength="3" value="${companyModel.members }">
                </div>               
              </div>        
     		</div>
     		<div class="control-group work-area">
              <label class="control-label"><span class="help-required">*</span>邮箱：</label>
              <div class="controls">             
                <div class="valid-row">
                	<input class="text span7" type="email" name="mailbox" value="${companyModel.mailbox }"> 
                	<span style="color:red"><form:errors path="mailbox"></form:errors></span>              
                </div>
             </div>
            </div>
            <div class="control-group work-area">
              <label class="control-label"><span class="help-required">*</span>公司简介：</label>
              <div class="controls">             
                <div class="valid-row">
                	<textarea class="span span10" rows="5" name="description" >${companyModel.description }</textarea>
                	<span style="color:red"><form:errors path="description"></form:errors></span>              
                </div>
             </div>
            </div>
     	 </div>
                   
          <hr>         
          <div class="form-actions">     	           
            	<input  type="submit" class="btn btn-large btn-primary" value="修改">        
          </div>
           <br>
    </form:form>
  </div>
  </div>
</div>

</div>

<jsp:include page="../common/footer.jsp"></jsp:include>

<div class="fixed-aside">
	<a class="fixed-go-top" href="javascript:;">
		<i class="icon-32 icon-32-gotop"></i>
		<span class="text-go-top">返回<br>顶部</span>
	</a>
</div>
</body>
</html>